import http from './index'

export function info() {
  return http.get('/auth/base/index')
}

export function update(data) {
  return http.post('/auth/base/info', data)
}

export function register(uuid, parent_uuid) {
  return http.post('/auth/login/register', { uuid, parent_uuid })
}

export function transfer(data) {
  return http.post('/member/log/virtual/trade', { data })
}

export function withdrawal(data) {
  return http.post('/member/log/virtual/withdrawal', data)
}

export function virtual(page) {
  return http.get('/member/log/virtual', {
    params: {
      page,
      limit: 10
    }
  })
}


export function withdrawalLog(type, status) {
  return http.get('/member/log/virtual/wait', {
    params: {
      status,
      type
    }
  })
}
